package com.zhang.springcloud.block;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.zhang.springcloud.entities.CommonResult;

public class BlockHandler {
    public static CommonResult BlockHandlerMethod(Integer id, BlockException b){
        return new CommonResult(444,"熔断啦降级啦"+b.getMessage(),id);
    }
}
